package com.goodving.guli.model.uploadhelper.p074a.p075a;

import android.content.Context;
import android.text.TextUtils;

import com.goodving.guli.model.uploadhelper.p074a.C1304h;
import com.goodving.guli.server.WebResponse;

/* renamed from: cn.com.smartdevices.bracelet.i.a.a.d */
public class ResponseHandler extends C1304h<String> { // C1305d
    private Context f6668a;

    public ResponseHandler(Context context) {
        this.f6668a = context;
    }

    public void m11509a(String str) {
        if (TextUtils.isEmpty(str)) {
            failure();
            return;
        }
        WebResponse a = WebResponse.getWebResponse(this.f6668a, str);
        if (a.m11659c() || a.m11657a()) {
            success();
            if (a.m11657a()) {
                passon();
                return;
            }
            return;
        }
        failure();
    }

    public /* synthetic */ void check(String obj) {
        m11509a((String) obj);
    }
}
